package chp13.home;

public class Home2 {

    public static void main(String[] args) {
        String idcard = "110108199009304115";
//        System.out.println(idcard.length());
        System.out.println(idcard);
        String year = idcard.substring(6,6+4);
        System.out.println("年:"+year);
        String month = idcard.substring(10,10+2);
        System.out.println("月:"+month);
        String day = idcard.substring(12,12+2);
        System.out.println("日:"+day);
    }
}
